#include <iostream>

int main()
{
    const int max = 100;
    char input[100];
    int quest_count = 0;
    for (int i = 0; i < max; ++i)
    {
        if(input[i] == '?')
            quest_count ++;
    }
    int i = 0;
    while( i < max)
    {
        if(input[i] == '?')
            quest_count ++;
        ++i;
    }

    for(char* p = input; p != input+max; ++p)
    {
        if (*p == '?')
            quest_count ++;
    }
}
